package com.iyundao.io.mapper;

import com.iyundao.io.model.Integral;

import static org.apache.ibatis.jdbc.SqlBuilder.*;

public class IntegralSqlProvider {

    public String insertSelective(Integral record) {
        BEGIN();
        INSERT_INTO("integral");
        
        if (record.getId() != null) {
            VALUES("id", "#{id,jdbcType=INTEGER}");
        }
        
        if (record.getIntegralsum() != null) {
            VALUES("integralsum", "#{integralsum,jdbcType=INTEGER}");
        }
        
        if (record.getIntegralnow() != null) {
            VALUES("integralnow", "#{integralnow,jdbcType=INTEGER}");
        }
        
        if (record.getPartymemberid() != null) {
            VALUES("partymemberid", "#{partymemberid,jdbcType=INTEGER}");
        }
        
        return SQL();
    }
}